<?php

class My_Form_ConfigForm extends Zend_Form
{

    public function init()
    {
        $select = new Zend_Form_Element_Select("config");
        $select->addMultiOption("ini", "ini");
        $select->addMultiOption("json", "Json");
        $select->addMultiOption("php", "Php");
        $select->addMultiOption("yaml", "Yaml");
        $select->addMultiOption("xml", "Xml");
        $select->setValue($_SESSION['config']);
        //$select->setLabel("Choisir la config");
        $select->setAttrib('onchange', 'submit();');
        $this->setAction("/game/index/config");

        $select->removeDecorator("DtDdWrapper");
        $this->removeDecorator("DtDdWrapper");
        $this->addElements(array($select));
    }


}

